import Vue from 'vue'
import * as types from './types'

export default {
    // 同步左侧菜单选中
    setOpenId({
        commit
    }, data) {
        commit(types.SET_OPENID, data);
    },
    setAppId({
        commit
    }, data) {
        commit(types.SET_APPID, data);
    },
    setSecret({
        commit
    }, data) {
        commit(types.SET_SECRET, data);
    },
    setUserInfo({
        commit
    }, data) {
        commit(types.SET_USER_INFO, data);
    },
    updateLoading({
        commit
    }, data) {
        commit(types.UPDATE_LOADING, data);
    },
    updateBaseInfo({
        commit
    }, data) {
        commit(types.UPDATE_BASEINFO, data);
    }

}
